/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package centralehotel.metier.backoffice;

import centralehotel.exception.IdentificationFailedException;
import centralehotel.dao.interfaces.GestionnaireHotelDAOLocal;
import centralehotel.modele.GestionnaireHotel;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.persistence.NoResultException;

/**
 *
 * @author Mathieu
 */
@Stateless
public class IdentificationMetier implements IdentificationMetierLocal {

    @EJB
    private GestionnaireHotelDAOLocal gestionnaireHotelDAO;

    public GestionnaireHotel loginGestionnaire(String email, String password) throws IdentificationFailedException {
       
            return gestionnaireHotelDAO.checkLogin(email, password);
        
    }
}
